<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="reserveheader.jsp"%>
<%
	String yr = request.getParameter("year");
	String mon = request.getParameter("month");
	String RV_START = request.getParameter("RV_START");
	String RV_END = request.getParameter("RV_END");
	String RV_DAY = request.getParameter("RV_DAY");
	String RV_ROOM = request.getParameter("RV_ROOM");
	String RV_PEOPLE = request.getParameter("RV_PEOPLE");
	String RV_ROOMPRICE = request.getParameter("RV_ROOMPRICE");
	String RV_PEOPLEPRICE = request.getParameter("RV_PEOPLEPRICE");
	String RV_PRICE = request.getParameter("RV_PRICE");
%>
	<div id="real_contents">
<script language="javascript">
var MsgFlag = true;
function MemberSubmitCheck(){
	var form = document.member_fm;
	if(form.member_name.value == '') {
		alert('[성명]을 기재해 주세요.');
		form.member_name.focus();
		return false;
	}
	
	if(form.member_hp1.value == '') {
		alert('휴대폰[첫째자리]를 선택해 주세요.');
		form.member_hp1.focus();
		return false;
	}
	if( form.member_hp2.value == '') {
		alert('휴대폰[둘째자리]를 기재해 주세요.');
		form.member_hp2.focus();
		return false;
	}
	if( form.member_hp2.value ) {
		if(!IsNumber(form.member_hp2.name)){
			alert('[휴대폰]은 숫자만 허용됩니다.');
			form.member_hp2.focus();
			form.member_hp2.select();
			return false;
		}
	}
	if ( form.member_hp3.value == '' ) {
		alert('휴대폰[셋째자리]을 기재해 주세요.');
		form.member_hp3.focus();
		return false;
	}
	if( form.member_hp3.value ) {
		if(!IsNumber(form.member_hp3.name)){
			alert('[휴대폰]은 숫자만 허용됩니다.');
			form.member_hp3.focus();
			form.member_hp3.select();
			return false;
		}
	}
	return true;
}
function jump_field(){
	var str = document.member_fm.member_jumin1.value.length;
	if(str == 6) document.member_fm.member_jumin2.focus();
}
function IsNumber(formname) {
	var form = eval('document.member_fm.'+formname);
	for(var i=0; i<form.value.length; i++) {
		var chr=form.value.substr(i,1);
		if(chr<'0' || chr > '9') {
			return false;
		}
	}
	return true;
}
function jump_tellfield(obj, next_obj) {
	var str = obj.value.length;
	if(str == 4) next_obj.focus();
}
function BackPage(){
	var movedata = document.movedata;
	movedata.action="<%=path%>/reservepage.rv";
	movedata.method="post";
	movedata.submit();
}
window.onload = function() {
	document.member_fm.member_name.focus();
}
</script>
<form name="movedata">
<input type="hidden" name="year" value="<%=yr%>">
<input type="hidden" name="month" value="<%=mon%>">
</form>
<form method="post" name="member_fm" action="<%=path%>/reservepayment.rv" onsubmit="return MemberSubmitCheck()">
<input type="hidden" name="year" value="<%=yr%>">
<input type="hidden" name="month" value="<%=mon%>">
<input type="hidden" name="RV_START" value="<%=RV_START%>">
<input type="hidden" name="RV_END" value="<%=RV_END%>">
<input type="hidden" name="RV_DAY" value="<%=RV_DAY%>">
<input type="hidden" name="RV_ROOM" value="<%=RV_ROOM%>">
<input type="hidden" name="RV_PEOPLE" value="<%=RV_PEOPLE%>">
<input type="hidden" name="RV_ROOMPRICE" value="<%=RV_ROOMPRICE%>">
<input type="hidden" name="RV_PEOPLEPRICE" value="<%=RV_PEOPLEPRICE%>">
<input type="hidden" name="RV_PRICE" value="<%=RV_PRICE%>">
<div id="real_step05">
	<div id="step05_title"><img src="<%=path%>/images/5title.gif" alt=""></div>
	<div id="step05_content01">
		<div id="price_check">
			
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="pricecheck" summary="">
				<colgroup>
				<col width="20%">
				<col width="80%">
				</colgroup>
				<tbody>
				<tr>
					<td class="title_td">성명</td>
					<td class="con_td border_Rno">
					<input type="text" name="member_name" maxlength="64" value="" class="input150">
					<span class="font_007cc9">(필수)</span>
					</td>
				</tr>
				
				<tr>
					<td class="title_td">전화번호</td>
					<td class="con_td border_Rno">
						<select name="member_tel1">
							<option value="02" selected="selected">02</option>
							<option value="031">031</option>
							<option value="032">032</option>
							<option value="033">033</option>
							<option value="041">041</option>
							<option value="042">042</option>
							<option value="043">043</option>
							<option value="051">051</option>
							<option value="052">052</option>
							<option value="053">053</option>
							<option value="054">054</option>
							<option value="055">055</option>
							<option value="061">061</option>
							<option value="062">062</option>
							<option value="063">063</option>
							<option value="064">064</option>
						</select>
						 - 
						<input type="text" name="member_tel2" onkeyup="jump_tellfield(this, this.form.member_tel3);" maxlength="4" value="" class="input35">
						 - 
						 <input type="text" name="member_tel3" onkeyup="jump_tellfield(this, this.form.member_hp1);" maxlength="4" value="" class="input35">
					</td>
				</tr>
				<tr>
					<td class="title_td">휴대폰번호</td>
					<td class="con_td border_Rno">
						<select name="member_hp1">
							<option value="010" selected="selected">010</option>
							<option value="011">011</option>
							<option value="016">016</option>
							<option value="017">017</option>
							<option value="018">018</option>
							<option value="019">019</option>
						</select>
						 - 
						 <input type="text" name="member_hp2" onkeyup="jump_tellfield(this, this.form.member_hp3);" maxlength="4" value="" class="input35">
						  - 
						  <input type="text" name="member_hp3" onkeyup="jump_tellfield(this, this.form.member_email);" maxlength="4" value="" class="input35">
						  <span class="font_007cc9">(필수)</span>
					</td>
				</tr>
				<tr>
					<td class="title_td">이메일</td>
					<td class="con_td border_Rno">
					<input type="text" name="member_email0" value="" class="input200"></td>
				</tr>
				<tr>
					<td class="title_td">주소</td>
					<td class="con_td border_Rno">
					<input type="text" name="member_addr1" value="" class="input250"></td>
				</tr>
				<tr>
					<td class="title_td">메모</td>
					<td class="con_td border_Rno">
					<textarea name="member_memo" style="width:400px; height:80px"></textarea></td>
				</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
<div id="stpe05_next">
<a href="javascript:BackPage()"><img src="<%=path%>/images/btn_back.gif" alt=""></a>
<input type="image" src="<%=path%>/images/btn_ok2.gif" border="0" alt="" style="width:74px; height:30px;">
</div>
</form>
	</div>
<%@ include file="reservefooter.jsp"%>